/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.magri.aula2.exercicio5;

/**
 *
 * @author Magri
 */
public class MaquinaDeCalculo {
    
    public static void mostrarCalculo(OperacaoMatematica op, double x, double y) {
        System.out.println("Resultado: " + op.calcular(x, y));
    }
    
    public static void main(String[] args) {
        mostrarCalculo(new Soma(), 8, 15);
        
        mostrarCalculo(new Subtracao(), 9, 5);
        
    }
}
